/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TeacherUI.java
 *
 * Created on 2011-5-30, 14:32:59
 */
package junchangmis.teacher;

import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import junchangmis.*;
import publicmethod.*;
import junchangmis.codecSetting.*;
import javax.swing.JOptionPane;
import java.awt.event.*;
import javax.swing.*;
import java.util.StringTokenizer;
import java.util.Vector;
import java.sql.ResultSet;
import java.awt.Point;
import java.sql.ResultSet;
import java.util.Vector;

/**
 *
 * @author developers
 */
public class TeacherInputUI extends javax.swing.JFrame implements WindowListener {

    MainFrame parent;
    teacher tea = new teacher();
    teacher other = new teacher();
    tipDialog td = new tipDialog(this, false);

    /** Creates new form TeacherUI */
    public TeacherInputUI(MainFrame parent) {//添加时的构造函数
        this.parent = parent;
        initComponents();
        this.jButtonJustExit.setVisible(false);
        this.jButtonAddAndEdit.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAddActionPerformed(evt);
            }
        });
        this.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
        this.addWindowListener(this);
        this.setLocationRelativeTo(null);
        tipDialog();
        this.setTitle("教师月末考勤考核录入");
    }

    public TeacherInputUI(MainFrame parent, teacher temp) {//查询和修改时的构造函数
        this.parent = parent;
        this.tea = temp;
        initComponents();
        jButtonAddAndEdit.setText("修改");
        this.jButtonAddAndEdit.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonInquireAndEditActionPerformed(evt);
            }
        });
        this.jButtonJustExit.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonJustExitActionPerformed(evt);
            }
        });
        setInfos();
        this.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
        this.addWindowListener(this);
        this.setLocationRelativeTo(null);
        tipDialog();
        this.setTitle("教师信息查询与修改");
    }

    void tipDialog() {
        Point p = new Point(this.getX() + this.getWidth(), this.getY());
        td.setLocation(p);
        td.setVisible(true);
    }

    private void jButtonAddActionPerformed(java.awt.event.ActionEvent evt) {//添加
        getInputs();
        if (TeacherInputMethod.hasTeacher(tea) == false) {
            TeacherInputMethod.addTeacher(tea);
            JOptionPane.showConfirmDialog(null, "添加成功！", "提示", JOptionPane.CLOSED_OPTION, JOptionPane.INFORMATION_MESSAGE);
            dispose();
            parent.setVisible(true);
        } else {
            JOptionPane.showConfirmDialog(null, "项目重复，添加失败！", "提示", JOptionPane.CLOSED_OPTION, JOptionPane.WARNING_MESSAGE);
        }
    }

    private void jButtonInquireAndEditActionPerformed(java.awt.event.ActionEvent evt) {//修改
        //如果关键字信息被修改，则需要判断重复后再更新
        if (tea.yearStart.equals(this.jComboBoxYearStart.getSelectedItem().toString()) == false || tea.monthStart.equals(this.jComboBoxMonthStart.getSelectedItem().toString()) == false || tea.name.equals(this.jTextFieldName.getText()) == false || tea.classCode.equals(this.jTextFieldClassCode.getText()) == false) {
            getInputs(other);//通过控件上的值来更新变量other
            //判断重复
            if (TeacherInputMethod.hasTeacher(other) == true) {
                JOptionPane.showConfirmDialog(null, "项目重复，修改失败！", "提示", JOptionPane.CLOSED_OPTION, JOptionPane.WARNING_MESSAGE);
                return;
            } else {//关键字被修改，但是没有重复，因此可以进行update操作
                try {
                    DbOperation db = new DbOperation();
                    db.DbConnect();
                    //根据tea进行查询
                    String sql = "select * from teacher where name='" + tea.name + "' and yearStart='" + tea.yearStart + "' and monthStart='" + tea.monthStart + "' and classCode='" + tea.classCode + "'";
                    ResultSet rs = db.DBSqlQuery(sql);
                    if (rs.next()) {//根据other进行更新
                        rs.updateString("yearStart", other.yearStart);
                        rs.updateString("monthStart", other.monthStart);
                        rs.updateString("dayStart", other.dayStart);
                        rs.updateString("yearEnd", other.yearEnd);
                        rs.updateString("monthEnd", other.monthEnd);
                        rs.updateString("dayEnd", other.dayEnd);
                        rs.updateString("week", other.week);
                        rs.updateString("name", other.name);
                        rs.updateString("classCode", other.classCode);
                        rs.updateString("classCount", other.classCount);
                        rs.updateString("listenCount", other.listenCount);
                        rs.updateString("sumStart", other.sumStart);
                        rs.updateString("sumEnd", other.sumEnd);
                        rs.updateString("change", Integer.toString(Integer.valueOf(other.sumEnd) - Integer.valueOf(other.sumStart)));
                        rs.updateString("stopCount", other.stopCount);
                        rs.updateString("shiftCount", other.shiftCount);
                        rs.updateString("insteadCount", other.insteadCount);
                        rs.updateString("addCount", other.addCount);

                        rs.updateRow();
                        JOptionPane.showConfirmDialog(null, "修改成功！", "提示", JOptionPane.CLOSED_OPTION, JOptionPane.INFORMATION_MESSAGE);
                        dispose();
                        parent.setVisible(true);
                    }
                } catch (SQLException ex) {
                    Logger.getLogger(TeacherInputUI.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        } else {//如果关键字信息没有被修改，则不用判断重复，直接进行update操作
            getInputs(other);
            try {
                DbOperation db = new DbOperation();
                db.DbConnect();
                String sql = "select * from teacher where name='" + tea.name + "' and yearStart='" + tea.yearStart + "' and monthStart='" + tea.monthStart + "' and classCode='" + tea.classCode + "'";
                ResultSet rs = db.DBSqlQuery(sql);
                if (rs.next()) {
                    rs.updateString("yearStart", other.yearStart);
                    rs.updateString("monthStart", other.monthStart);
                    rs.updateString("dayStart", other.dayStart);
                    rs.updateString("yearEnd", other.yearEnd);
                    rs.updateString("monthEnd", other.monthEnd);
                    rs.updateString("dayEnd", other.dayEnd);
                    rs.updateString("week", other.week);
                    rs.updateString("name", other.name);
                    rs.updateString("classCode", other.classCode);
                    rs.updateString("classCount", other.classCount);
                    rs.updateString("listenCount", other.listenCount);
                    rs.updateString("sumStart", other.sumStart);
                    rs.updateString("sumEnd", other.sumEnd);
                    rs.updateString("change", Integer.toString(Integer.valueOf(other.sumEnd) - Integer.valueOf(other.sumStart)));
                    rs.updateString("stopCount", other.stopCount);
                    rs.updateString("shiftCount", other.shiftCount);
                    rs.updateString("insteadCount", other.insteadCount);
                    rs.updateString("addCount", other.addCount);

                    rs.updateRow();
                    JOptionPane.showConfirmDialog(null, "修改成功！", "提示", JOptionPane.CLOSED_OPTION, JOptionPane.INFORMATION_MESSAGE);
                    dispose();
                    parent.setVisible(true);
                }
            } catch (SQLException ex) {
                Logger.getLogger(TeacherInputUI.class.getName()).log(Level.SEVERE, null, ex);
            }
        }

    }

    private void jButtonJustExitActionPerformed(java.awt.event.ActionEvent evt) {//查询--不修改时的按钮消息
        dispose();//关闭自己
    }

    void setInfos() {
        this.jComboBoxYearStart.setSelectedItem(tea.yearStart);
        this.jComboBoxMonthStart.setSelectedItem(tea.monthStart);
        this.jComboBoxDayStart.setSelectedItem(tea.dayStart);
        this.jComboBoxYearEnd.setSelectedItem(tea.yearEnd);
        this.jComboBoxMonthEnd.setSelectedItem(tea.monthEnd);
        this.jComboBoxDayEnd.setSelectedItem(tea.dayEnd);

        this.jTextFieldWeek.setText(tea.week);
        this.jTextFieldName.setText(tea.name);
        this.jTextFieldClassCode.setText(tea.classCode);
        this.jLabelClassName.setText(":" + codecMethodNew.getMeaning(tea.classCode));
        this.jTextFieldClassCount.setText(tea.classCount);
        this.jTextFieldListenCount.setText(tea.listenCount);
        this.jTextFieldSumStart.setText(tea.sumStart);
        this.jTextFieldSumEnd.setText(tea.sumEnd);
        this.jTextFieldChange.setText(Integer.toString(Integer.valueOf(tea.sumEnd) - Integer.valueOf(tea.sumStart)));
        this.jTextFieldStopCount.setText(tea.stopCount);
        this.jTextFieldShiftCount.setText(tea.shiftCount);
        this.jTextFieldInsteadCount.setText(tea.insteadCount);
        this.jTextFieldAddCount.setText(tea.addCount);
    }

    public void windowActivated(WindowEvent arg0) { //设置为活动窗口时触发
        //System.out.println("windowActivated -->窗口被选中。");
    }

    public void windowClosed(WindowEvent arg0) { //窗口被关闭时触发
        //System.out.println("windowClosed -->窗口被关闭。");
        //parent.setVisible(true);
    }

    public void windowClosing(WindowEvent arg0) { //窗口关闭时触发,按下关闭按钮
        System.out.println("windowClosing -->窗口关闭。");
        parent.setVisible(true);
    }

    public void windowDeactivated(WindowEvent arg0) { //设置为非活动窗口时触发
        //System.out.println("windowDeactivated -->取消窗口选中。");
    }

    public void windowDeiconified(WindowEvent arg0) { //窗口从最小化还原时触发
        //System.out.println("windowDeiconified -->窗口从最小化恢复。");
    }

    public void windowIconified(WindowEvent arg0) { //窗口最小化时触发
        //System.out.println("windowIconified -->窗口最小化。");
    }

    public void windowOpened(WindowEvent arg0) { //窗口最小化时触发
        //System.out.println("windowv -->窗口被打开。");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jComboBoxYearStart = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        jComboBoxMonthStart = new javax.swing.JComboBox();
        jLabel3 = new javax.swing.JLabel();
        jComboBoxDayStart = new javax.swing.JComboBox();
        jLabel4 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jComboBoxYearEnd = new javax.swing.JComboBox();
        jComboBoxMonthEnd = new javax.swing.JComboBox();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jComboBoxDayEnd = new javax.swing.JComboBox();
        jLabel24 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        jTextFieldWeek = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        jSeparator2 = new javax.swing.JSeparator();
        jPanel3 = new javax.swing.JPanel();
        jLabel10 = new javax.swing.JLabel();
        jTextFieldName = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jTextFieldClassCode = new javax.swing.JTextField();
        jLabelClassName = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jTextFieldClassCount = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jTextFieldListenCount = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        jTextFieldSumStart = new javax.swing.JTextField();
        jPanel5 = new javax.swing.JPanel();
        jLabel15 = new javax.swing.JLabel();
        jTextFieldSumEnd = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jTextFieldChange = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        jTextFieldStopCount = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        jTextFieldShiftCount = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        jTextFieldInsteadCount = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        jTextFieldAddCount = new javax.swing.JTextField();
        jSeparator3 = new javax.swing.JSeparator();
        jButtonAddAndEdit = new javax.swing.JButton();
        jButtonJustExit = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setResizable(false);
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                formMouseReleased(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel1.setText("开始时间  ");

        jComboBoxYearStart.setFont(new java.awt.Font("华文细黑", 0, 24));
        jComboBoxYearStart.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020" }));

        jLabel2.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel2.setText("年");

        jComboBoxMonthStart.setFont(new java.awt.Font("华文细黑", 0, 24));
        jComboBoxMonthStart.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" }));

        jLabel3.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel3.setText("月");

        jComboBoxDayStart.setFont(new java.awt.Font("华文细黑", 0, 24));
        jComboBoxDayStart.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        jLabel4.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel4.setText("日");

        jLabel21.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel21.setText("结束时间");

        jComboBoxYearEnd.setFont(new java.awt.Font("华文细黑", 0, 24));
        jComboBoxYearEnd.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020" }));

        jComboBoxMonthEnd.setFont(new java.awt.Font("华文细黑", 0, 24));
        jComboBoxMonthEnd.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" }));

        jLabel22.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel22.setText("月");

        jLabel23.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel23.setText("年");

        jComboBoxDayEnd.setFont(new java.awt.Font("华文细黑", 0, 24));
        jComboBoxDayEnd.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        jLabel24.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel24.setText("日");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel21))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jComboBoxYearStart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBoxYearEnd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addComponent(jLabel23))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jComboBoxMonthEnd, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jComboBoxMonthStart, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addComponent(jLabel22))
                .addGap(5, 5, 5)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jComboBoxDayEnd, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jComboBoxDayStart, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(jLabel24))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxYearStart)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
                    .addComponent(jComboBoxMonthStart)
                    .addComponent(jComboBoxDayStart)
                    .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel4)
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(jComboBoxMonthEnd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel22)
                    .addComponent(jComboBoxDayEnd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel24)
                    .addComponent(jLabel21)
                    .addComponent(jComboBoxYearEnd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(23, 23, 23))
        );

        jLabel9.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel9.setText("本月周数");

        jTextFieldWeek.setFont(new java.awt.Font("华文细黑", 0, 24));

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addComponent(jLabel9)
                .addContainerGap(31, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap(21, Short.MAX_VALUE)
                .addComponent(jTextFieldWeek, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addComponent(jLabel9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextFieldWeek, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
        );

        jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);

        jLabel10.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel10.setText("教师姓名");

        jTextFieldName.setFont(new java.awt.Font("华文细黑", 0, 24));

        jLabel11.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel11.setText("班级编码");

        jTextFieldClassCode.setFont(new java.awt.Font("华文细黑", 0, 24)); // NOI18N
        jTextFieldClassCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldClassCodeActionPerformed(evt);
            }
        });
        jTextFieldClassCode.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextFieldClassCodeKeyReleased(evt);
            }
        });

        jLabelClassName.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabelClassName.setText("——");

        jLabel12.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel12.setText("上课总次数");

        jTextFieldClassCount.setFont(new java.awt.Font("华文细黑", 0, 24));

        jLabel13.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel13.setText("学生听课总次数");

        jTextFieldListenCount.setFont(new java.awt.Font("华文细黑", 0, 24));

        jLabel14.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel14.setText("月初人数");

        jTextFieldSumStart.setFont(new java.awt.Font("华文细黑", 0, 24));

        jLabel15.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel15.setText("月末人数");

        jTextFieldSumEnd.setFont(new java.awt.Font("华文细黑", 0, 24));
        jTextFieldSumEnd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldSumEndActionPerformed(evt);
            }
        });

        jLabel16.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel16.setText("人数增减");

        jTextFieldChange.setEditable(false);
        jTextFieldChange.setFont(new java.awt.Font("华文细黑", 0, 24));

        jLabel17.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel17.setText("停课次数");

        jTextFieldStopCount.setFont(new java.awt.Font("华文细黑", 0, 24));

        jLabel18.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel18.setText("调课次数");

        jTextFieldShiftCount.setFont(new java.awt.Font("华文细黑", 0, 24));

        jLabel19.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel19.setText("代课次数");

        jTextFieldInsteadCount.setFont(new java.awt.Font("华文细黑", 0, 24));

        jLabel20.setFont(new java.awt.Font("华文细黑", 0, 24));
        jLabel20.setText("补课次数");

        jTextFieldAddCount.setFont(new java.awt.Font("华文细黑", 0, 24));

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel15)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldSumEnd, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldChange, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel17)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldStopCount, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel18)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldShiftCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel19)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldInsteadCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel20)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldAddCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(139, Short.MAX_VALUE))
        );

        jPanel5Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jTextFieldAddCount, jTextFieldChange, jTextFieldInsteadCount, jTextFieldShiftCount, jTextFieldStopCount, jTextFieldSumEnd});

        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(jTextFieldSumEnd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16)
                    .addComponent(jTextFieldChange, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel17)
                    .addComponent(jTextFieldStopCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldShiftCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel19)
                    .addComponent(jTextFieldInsteadCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel20)
                    .addComponent(jTextFieldAddCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel5Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jTextFieldAddCount, jTextFieldChange, jTextFieldInsteadCount, jTextFieldShiftCount, jTextFieldStopCount, jTextFieldSumEnd});

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel12)
                        .addGap(10, 10, 10)
                        .addComponent(jTextFieldClassCount, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldName, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldClassCode, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel13)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldListenCount)))
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelClassName)
                        .addContainerGap(144, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldSumStart, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(99, 99, 99))))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(104, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel11)
                    .addComponent(jTextFieldClassCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelClassName)
                    .addComponent(jLabel10))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldClassCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel13)
                    .addComponent(jTextFieldListenCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14)
                    .addComponent(jTextFieldSumStart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jButtonAddAndEdit.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonAddAndEdit.setText("添加");

        jButtonJustExit.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonJustExit.setText("不修改而关闭");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(53, 53, 53)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 776, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 666, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createSequentialGroup()
                .addGap(314, 314, 314)
                .addComponent(jButtonAddAndEdit)
                .addGap(18, 18, 18)
                .addComponent(jButtonJustExit)
                .addContainerGap(200, Short.MAX_VALUE))
            .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 790, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(4, 4, 4)
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonAddAndEdit)
                    .addComponent(jButtonJustExit))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    void getInputs() {
        tea.yearStart = this.jComboBoxYearStart.getSelectedItem().toString();
        tea.monthStart = this.jComboBoxMonthStart.getSelectedItem().toString();
        tea.dayStart = this.jComboBoxDayStart.getSelectedItem().toString();
        tea.yearEnd = this.jComboBoxYearEnd.getSelectedItem().toString();
        tea.monthEnd = this.jComboBoxMonthEnd.getSelectedItem().toString();
        tea.dayEnd = this.jComboBoxDayEnd.getSelectedItem().toString();
        tea.week = this.jTextFieldWeek.getText();
        tea.name = this.jTextFieldName.getText();
        tea.classCode = this.jTextFieldClassCode.getText();
        tea.classCount = this.jTextFieldClassCount.getText();
        tea.listenCount = this.jTextFieldListenCount.getText();
        tea.sumStart = this.jTextFieldSumStart.getText();
        tea.sumEnd = this.jTextFieldSumEnd.getText();
        tea.change = this.jTextFieldChange.getText();
        tea.stopCount = this.jTextFieldStopCount.getText();
        tea.shiftCount = this.jTextFieldShiftCount.getText();
        tea.insteadCount = this.jTextFieldInsteadCount.getText();
        tea.addCount = this.jTextFieldAddCount.getText();
    }

    void getInputs(teacher other) {
        other.yearStart = this.jComboBoxYearStart.getSelectedItem().toString();
        other.monthStart = this.jComboBoxMonthStart.getSelectedItem().toString();
        other.dayStart = this.jComboBoxDayStart.getSelectedItem().toString();
        other.yearEnd = this.jComboBoxYearEnd.getSelectedItem().toString();
        other.monthEnd = this.jComboBoxMonthEnd.getSelectedItem().toString();
        other.dayEnd = this.jComboBoxDayEnd.getSelectedItem().toString();
        other.week = this.jTextFieldWeek.getText();
        other.name = this.jTextFieldName.getText();
        other.classCode = this.jTextFieldClassCode.getText();
        other.classCount = this.jTextFieldClassCount.getText();
        other.listenCount = this.jTextFieldListenCount.getText();
        other.sumStart = this.jTextFieldSumStart.getText();
        other.sumEnd = this.jTextFieldSumEnd.getText();
        other.change = this.jTextFieldChange.getText();
        other.stopCount = this.jTextFieldStopCount.getText();
        other.shiftCount = this.jTextFieldShiftCount.getText();
        other.insteadCount = this.jTextFieldInsteadCount.getText();
        other.addCount = this.jTextFieldAddCount.getText();
    }
    private void jTextFieldSumEndActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldSumEndActionPerformed
        // TODO add your handling code here:
        this.jTextFieldChange.setText(Integer.toString(Integer.valueOf(this.jTextFieldSumEnd.getText()) - Integer.valueOf(this.jTextFieldSumStart.getText())));
    }//GEN-LAST:event_jTextFieldSumEndActionPerformed

    private void jTextFieldClassCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldClassCodeActionPerformed
        // TODO add your handling code here:
        this.jLabelClassName.setText(":" + codecMethodNew.getMeaning(this.jTextFieldClassCode.getText()));
    }//GEN-LAST:event_jTextFieldClassCodeActionPerformed

    private void formMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseReleased
        // TODO add your handling code here:
        tipDialog();
    }//GEN-LAST:event_formMouseReleased
    boolean isBlank(String str) {
        if (str == null || str.trim().equals("")) {
            return true;
        } else {
            return false;
        }
    }
    private void jTextFieldClassCodeKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldClassCodeKeyReleased
        // TODO add your handling code here:
        if (isBlank(this.jTextFieldClassCode.getText())) {
            td.getItem(null);
        } else {
            try {
                // TODO add your handling code here:
                Vector<String> codes = new Vector<String>();
                DbOperation db = new DbOperation();
                db.DbConnect();
                String sql = "select * from codeNew";
                ResultSet rs = db.DBSqlQuery(sql);
                while (rs.next()) {
                    String code = rs.getString(1);
                    String meaning = rs.getString(2);
                    if (code.startsWith(this.jTextFieldClassCode.getText())) {
                        codes.add(code + "    " + meaning);
                    }
                }
                db.DbClose();
                td.getItem(codes);
            } catch (SQLException ex) {
                Logger.getLogger(TeacherInputUI.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_jTextFieldClassCodeKeyReleased

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new TeacherInputUI(null).setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAddAndEdit;
    private javax.swing.JButton jButtonJustExit;
    private javax.swing.JComboBox jComboBoxDayEnd;
    private javax.swing.JComboBox jComboBoxDayStart;
    private javax.swing.JComboBox jComboBoxMonthEnd;
    private javax.swing.JComboBox jComboBoxMonthStart;
    private javax.swing.JComboBox jComboBoxYearEnd;
    private javax.swing.JComboBox jComboBoxYearStart;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabelClassName;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JTextField jTextFieldAddCount;
    private javax.swing.JTextField jTextFieldChange;
    private javax.swing.JTextField jTextFieldClassCode;
    private javax.swing.JTextField jTextFieldClassCount;
    private javax.swing.JTextField jTextFieldInsteadCount;
    private javax.swing.JTextField jTextFieldListenCount;
    private javax.swing.JTextField jTextFieldName;
    private javax.swing.JTextField jTextFieldShiftCount;
    private javax.swing.JTextField jTextFieldStopCount;
    private javax.swing.JTextField jTextFieldSumEnd;
    private javax.swing.JTextField jTextFieldSumStart;
    private javax.swing.JTextField jTextFieldWeek;
    // End of variables declaration//GEN-END:variables
}
